<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect"
	version="1.0">
	<xsl:output method="xml" />
	<xsl:template match="/">
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="root">
		<xsl:apply-templates />
	</xsl:template>
	<xsl:template match="tweet">
		<xsl:variable name="filename" select="concat('C:/home/guenzel/Eclipse_Workspaces/Indigo_TestArea/XML/OUTPUT/',position(),'.xml')" />
		<redirect:open file="{$filename}"/>
		<redirect:write file="{$filename}">
			<tweet>
				<xsl:apply-templates />
				<polarity>UNKNOWN</polarity>
			</tweet>
		</redirect:write>
		<redirect:close file="{$filename}"/>
	</xsl:template>
	<xsl:template match="author | nickname | time | text | mcount | place | geolocation | place">
		<xsl:copy-of select="." />
	</xsl:template>
</xsl:stylesheet>